import request from "@/utils/request";

export function selectGiftBag(params) {
  return request({
    url: "/admin/package/list",
    method: "get",
    params,
  });
}

export function selectGiftBagCommodity(params) {
  return request({
    url: "/admin/good/list",
    method: "get",
    params,
  });
}

export function editPutGiftBagCommodity(data) {
  return request({
    url: "/admin/package",
    method: "put",
    data,
  });
}

export function editPostGiftBagCommodity(data) {
  return request({
    url: "/admin/package",
    method: "post",
    data,
  });
}

export function delectGiftBagCommodity(id) {
  return request({
    url: `/admin/package/remove/${id}`,
    method: "delete",
  });
}
